package frame.factory;

import frame.core.DefaultSqlSession;
import frame.core.SqlSession;
import frame.pojo.Configuration;

/**
 * FileName: DefaultSqlSessionFactory
 * Author:   xuan zongjun
 * Date:     2020/11/6 11:59
 * Description:
 */


public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }


    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }

}
